package com.yonyou.pmclouds.completedcatalog.controller;

import com.yonyou.iuap.print.client.utils.JsonUtil;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.basecom.view.DisableWrap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * 竣工资料目录打印预览数据接口
 *
 * @author yzx
 * @Date: 2018/6/25 14:16
 */
@RestController
@RequestMapping("/completedCatalog/preview")
public class CompletedCatalogPreviewController {

    @DisableWrap
    @RequestMapping("/printPreviewConstructionLog")
    public Map<String, Object> printPreviewConstructionLog(HttpServletRequest request) throws BusinessException {
        Map<String, Object> result = new HashMap<>();
        // 目录pk
        String pkBill = (String) JsonUtil.jsonToMap(request.getParameter("params")).get("pkBill");

        return result;
    }
}
